import { pickerOptionsStatic } from '@/utils/config'
export const formItems = [
  {
    filed: 'venueId',
    type: 'select',
    label: '场馆',
    labelCode: 'name',
    valueCode: 'id',
    options: []
  },
  {
    filed: 'flag',
    type: 'select',
    options: [
      { value: '1', label: '增加' },
      { value: '2', label: '减少' }
    ],
    label: '收支类型'
  },
  {
    filed: 'selTime',
    type: 'daterange',
    clearable: false,
    label: '创建时间',
    pickerOptions: pickerOptionsStatic
  },
  {
    filed: 'name',
    type: 'input',
    label: '专项卡'
  },
  {
    filed: 'changeType',
    type: 'select',
    label: '操作类型',
    // labelCode: 'name',
    // valueCode: 'id',
    options: [
      { label: '充值', value: '1' },
      { label: '消费', value: '2' },
      // { label: '赠金变动', value: '3' },
      { label: '提现', value: '4' },
      { label: '余额调整', value: '5' },
      { label: '过期清零', value: '6' }
    ]
  }

]
export const queryFormConfig = {
  formItems,
  online: true
}

export const propList = [
  { label: '流水号', prop: 'id', minWidth: '140' },
  { label: '操作类型', prop: 'changeTypeName', minWidth: '100' },
  { label: '收支类型', prop: 'flag', minWidth: '100' },
  { label: '交易本金(元)', prop: 'value', minWidth: '120' },
  { label: '交易赠金(元)', prop: 'giveValue', minWidth: '120' },
  { label: '专项卡', prop: 'name', minWidth: '100' },
  { label: '消费场馆', prop: 'venueName', minWidth: '140' },
  { label: '订单号', prop: 'orderId', minWidth: '160' },
  { label: '交易时间', prop: 'createTime', minWidth: '160' }
]
